//
//  YJBBaseModel.h
//  YunJiaBaoFirst
//
//  Created by 腾云小白龍 on 16/7/28.
//  Copyright © 2016年 腾云小白龍. All rights reserved.
//

#import "MTLModel.h"
#import "MTLJSONAdapter.h"
#import <Foundation/Foundation.h>

/**
 *  快速调用父类方法，并生成字典，方便添加属性映射
 *
 *  @param _CONFIG_ 映射的字典，往其中加入对应属性映射,格式 @{ _ours_ : _theirs_}
 *
 *  @return 处理好的字典_quickDict
 */
#define HC_Quick_Config_Properties(_CONFIG_) \
+ (NSDictionary *)JSONKeyPathsByPropertyKey \
{ \
NSMutableDictionary *_quickDict = [NSMutableDictionary dictionaryWithDictionary:[super JSONKeyPathsByPropertyKey]]; \
[_quickDict addEntriesFromDictionary:_CONFIG_]; \
return [NSDictionary dictionaryWithDictionary:_quickDict]; \
}

@interface YJBBaseModel : MTLModel<MTLJSONSerializing>
//* 设置默认/测试参数
-(void)setTestDataModel;

@end
